const baseURL = 'http://172.17.26.246:80'
const http =(options)=>{
	return new Promise((resolve,reject)=>{
		uni.request({
			url:baseURL+options.url,
			method:options.method||'get',
			data:options.data||{},
			success:function(res) {
				resolve(res);
			},
			fail: function(err) {
				reject(err)
			}
		})
	})
}
export default http;